﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RealEstate.Views.Transaction
{
    public partial class StatusHistory : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = 0;
            if (Request.Params["id"] != null && int.TryParse(Request.Params["id"].ToString(), out id))
            {
                TransactionStatusEntities entity = new TransactionStatusEntities();
                var listHistory = entity.GetByTranId(id);                
                grvHistory.DataSource = listHistory;
                grvHistory.DataBind();
            }
        }
    }
}